package jmine.tec.web.front.domain;

import bancosys.tec.persist.builders.AbstractDBBuilder;

/**
 * @author lundberg
 */
public class BackOfficeRequestPropertyBuilder<T extends BackOfficeRequestProperty> extends AbstractDBBuilder<T> {

    private T bean;

    protected BackOfficeRequestPropertyBuilder() {
        this.bean = this.createBean();
        this.mnemonic("mne");
        this.description("description");
    }

    @Override
    protected T doBuild() {
        return this.bean;
    }

    public BackOfficeRequestPropertyBuilder<T> mnemonic(String value) {
        this.bean.setMnemonic(value);
        return this;
    }

    public BackOfficeRequestPropertyBuilder<T> description(String value) {
        this.bean.setDescription(value);
        return this;
    }
}
